from pyquery import PyQuery as pq

head={
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.54'
}


def getjobslists(url):
    doc = pq(url=url,headers=head)
    leilist = doc("li a p")
    for item in leilist.items():
        print(item.text())


url = "https://www.zhipin.com/?ka=click-index"
getjobslists(url)
